package com.ruoyi.task;

import com.ruoyi.common.core.domain.entity.SysArea;
import com.ruoyi.common.core.redis.RedisCache;
import com.ruoyi.common.utils.spring.SpringUtils;
import com.ruoyi.system.service.ISysAreaService;
import com.ruoyi.utils.DbbackupUtil;
import org.springframework.stereotype.Component;

import java.util.Collection;
import java.util.List;

/**
 * 定时任务
 * @author lmm
 */
@Component("DbbackupTask")
public class DbbackupTask {


    public void run(String HOSTIP, String HOSTPORT, String USERNAME, String PASSWORD, String SAVEPATH) {

        DbbackupUtil.dbbackup(HOSTIP, HOSTPORT, USERNAME, PASSWORD, SAVEPATH);

    }

}
